#include "client.hpp"
#include <memory>
void Usage(const char *program)
{
    std::cout << "Usage:" << "\t" << program << "ServerIP ServerPort" << std::endl;
}

int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        // 错误
        Usage(argv[0]);
        return 1;
    }
    std::string ip = argv[1];
    uint16_t port = std::stoi(argv[2]);

    std::unique_ptr<yui::TcpClient> usr(new yui::TcpClient(ip,port));
    usr->InitClient();
    usr->StartClient();
    return 0;
}